﻿/*
 * Copyright (c) Seagull Consulting, Inc. All rights reserved. See License.txt in the project root for license information.
 */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using SeagullConsulting.MvcAjaxControls.Data.Models;

namespace SeagullConsulting.MvcAjaxControls.Data.Repository
{
    public class CountryRepository
    {
        IList<Country> countries;

        public CountryRepository()
        {
            countries = new List<Country>() {
                new Country() { Id = 1, Name = "USA"},
                new Country() { Id = 2, Name = "Canada"}
            };
        }

        public IQueryable<Country> List()
        {
            return countries.OrderBy(c => c.Name).AsQueryable();
        }
    }
}